package com.stephentuso.welcomeexample;

import com.stephentuso.welcome.PageViewWelcomePage;
import com.stephentuso.welcome.WelcomeAbility;
import com.stephentuso.welcome.WelcomeConfiguration;
import com.stephentuso.welcome.util.PageView;
import com.stephentuso.welcomeexample.pageview.DonePageView;
import com.stephentuso.welcomeexample.pageview.ExamplePageView;

/**
 * Created by stephentuso on 10/5/16.
 */

public class CustomPageWelcomeAbility extends WelcomeAbility {

    @Override
    protected WelcomeConfiguration configuration() {
        return new WelcomeConfiguration.Builder(this)
                .defaultBackgroundColor(ResourceTable.Color_colorPrimary)
                .page(new PageViewWelcomePage() {
                    @Override
                    protected PageView pageView() {
                        return new ExamplePageView(getContext());
                    }
                })
                .page(new PageViewWelcomePage() {
                    @Override
                    protected PageView pageView() {
                        return new DonePageView(CustomPageWelcomeAbility.this);
                    }
                })
                .useCustomDoneButton(true)
                .build();
    }

}
